package com.github.xuemingyu.springboot.acticitycloud.dao;

import com.github.xuemingyu.springboot.acticitycloud.entity.Registration;
import com.github.xuemingyu.springboot.jkfaststart.repository.BaseJPA;

import java.util.List;

public interface RegistrationDao extends BaseJPA<Registration> {
    Registration findFirstByActivityIdAndUserId(Long activityId, String userId);

    List<Registration> findAllByActivityIdAndUserIdAndStatus(Long activityId, String userId, String status);
}
